package com.shop.mapper;

import com.shop.pojo.UserImg;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface UserImgMapper {
    @Insert("insert into userimg values(#{username},#{uimgurl})")
    public int addImg(UserImg userImg);
    @Delete("delete from userimg where username = #{username}")
    public int deleteImg(String username);
    @Select("select uimgurl from userimg where username = #{username}")
    public String selectImg(String username);
    @Update("update userimg set uimgurl = #{uimgurl} where username = #{username}")
    public int updateImg(UserImg userImg);
}
